package mediator;

public abstract class Person {
    private String name;
    private int level;
    private Mediator mediator;

    public Person(String name, int level, Mediator mediator) {
        this.name = name;
        this.level = level;
        this.mediator = mediator;
    }

    public String getName() {
        return name;
    }

    public int getLevel() {
        return level;
    }

    public Mediator getMediator() {
        return mediator;
    }

    public boolean checkClass(Person person){
        return this.getClass() == person.getClass();
    }

    public abstract void getPartner(Person person);
}
